//
//  XWBankCardHelper.h
//  XWFaceSDK_Example
//
//  Created by 吴智民 on 2019/11/8.
//  Copyright © 2019 lanchc. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#import "XWFaceHelper.h"

NS_ASSUME_NONNULL_BEGIN

// 结果回调
typedef void (^bankOcrCompleteBlock)(NSString *cardNum, NSString *bankName, NSString *cardType, NSString *cardName, XWDireType outType, UIImage *cardImage, NSInteger identifier);


/// 银行卡识别工具类
@interface XWBankCardHelper : NSObject


/// 单例
+ (instancetype)shared;

/// 扫描正面
- (void)scanningPositive:(UIViewController*)controller identifier:(NSInteger)mark complete:(bankOcrCompleteBlock)block;
/// 扫描反面
- (void)scanningNegative:(UIViewController*)controller identifier:(NSInteger)mark complete:(bankOcrCompleteBlock)block;



@end

NS_ASSUME_NONNULL_END
